Attempting local auth but facing errors#16
Draft
ashuchow wants to merge 1 commit intoohcnetwork:mainfrom
Draft
Conversation
Contributor
Author
|
A solution that I have been able to find is to move the api folder within app completely to a new directory called pages and keep the rest of the files within the app folder but I'm not sure of whether such a change is recommended. The API does show as working in the test file when this change is made. To implement our own custom authorisation however, we do need to install nodeemailer and have a user email and password saved in the env file. I would like some guidance on the same |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
I have attempted to create a local authorisation process but am facing difficulties in implementing it. It loads to the sign in page but when clicking on the button it leads to a 404 auth error page. I have set up a test.ts file to open in the browser as http://localhost:3000/api/test but that throws an error as well so it seems that the api is not working properly. I am seeking help with respect to the same. Please review the code when you have the time as I am not able to figure it out on my own.